package cn.tedu.boot.ers.pojo.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
@ApiModel("订单-菜品详情新增DTO")
public class OrderProductAddDTO implements Serializable {
    // 商品id;
    @NotNull(message = "商品id不能为空")
    @ApiModelProperty(value = "所点商品id", name = "productId", example = "1")
    private Long productId;
    // 订单id;
    @NotNull(message = "订单id不能为空")
    @ApiModelProperty(value = "所点商品所属订单id", name = "orderId", example = "1")
    private Long orderId;
}
